/*
 * Powered By xTOOLs
 * Dev by tao.li8@pactera.com
 * Copyright ©2009-2018 pactera.com All rights reserved.
 * Generated at 2020-7-6 18:44:48
 */

package com.pactera.jep.service.yapin.coll.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pactera.jep.entity.PO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.persistence.*;
import javax.validation.constraints.Digits;
import java.util.Date;

/**
 * 押品意外信息实体类
 * @Author YourName
 * @Date 2020-7-6 18:44:48
 */
@ApiModel(value = "AccidentInfo" , description = "押品意外信息")
@Entity
@Table(name = "bs_col_accidentinfo")
public class AccidentInfo implements PO {

    @ApiModelProperty("主键")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Length(max = 36, message = "主键长度最多36位")
    @Column(name = "ACCIDENTINFO_ID")
    private String accidentinfoId;

    @ApiModelProperty("意外情况编号")
    @Length(max = 40, message = "意外情况编号长度最多40位")
    @Column(name = "ACCIDENT_NO")
    private String accidentNo;

    @ApiModelProperty("意外情况类型")
    @Length(max = 20, message = "意外情况类型长度最多20位")
    @Column(name = "ACCIDENT_TP_CD")
    private String accidentTpCd;

    @ApiModelProperty("原因")
    @Length(max = 65535, message = "原因长度最多65,535位")
    @Column(name = "REASON")
    private String reason;

    @ApiModelProperty("发生日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Column(name = "HAPPEN_DT")
    private Date happenDt;

    @ApiModelProperty("是否可以理赔")
    @Length(max = 20, message = "是否可以理赔长度最多20位")
    @Column(name = "CAN_COMPENSATION_FLG")
    private String canCompensationFlg;

    @ApiModelProperty("是否存在瑕疵")
    @Length(max = 20, message = "是否存在瑕疵长度最多20位")
    @Column(name = "IS_FLAWY")
    private String isFlawy;

    @ApiModelProperty("抵押品状态")
    @Length(max = 20, message = "抵押品状态长度最多20位")
    @Column(name = "GUAR_STS_CD")
    private String guarStsCd;

    @ApiModelProperty("是否符合法律法规")
    @Length(max = 20, message = "是否符合法律法规长度最多20位")
    @Column(name = "IS_LEGAL")
    private String isLegal;

    @ApiModelProperty("押品编号")
    @Length(max = 40, message = "押品编号长度最多40位")
    @Column(name = "CLT_NO")
    private String cltNo;

    @ApiModelProperty("押品ID")
    @Length(max = 36, message = "押品ID长度最多36位")
    @Column(name = "CLT_ID")
    private String cltId;

    @ApiModelProperty("租户")
    @Column(name = "TENANT_ID_")
    private String tenantId;

    @ApiModelProperty("创建人ID")
    @Column(name = "CREATED_BY_ID_")
    private String createdById;

    @ApiModelProperty("创建人名称")
    @Length(max = 64, message = "创建人名称长度最多64位")
    @Column(name = "CREATED_BY_NAME_")
    private String createdByName;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "CREATED_TIME_")
    private Date createdTime;

    @ApiModelProperty("逻辑删除标记")
    @Length(max = 1, message = "逻辑删除标记长度最多1位")
    @Column(name = "DELFLAG_")
    private String delflag;

    @ApiModelProperty("显示序号")
    @Digits(integer = 10, fraction = 0, message = "显示序号不能超过10位")
    @Column(name = "DISPLAY_ORDER_")
    private Integer displayOrder;

    @ApiModelProperty("修改人ID")
    @Length(max = 64, message = "修改ID长度最多64位")
    @Column(name = "MODIFIED_BY_ID_")
    private String modifiedById;

    @ApiModelProperty("修改人名称")
    @Length(max = 64, message = "修改人名称长度最多64位")
    @Column(name = "MODIFIED_BY_NAME_")
    private String modifiedByName;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "MODIFIED_TIME_")
    private Date modifiedTime;

    @ApiModelProperty("版本")
    @Digits(integer = 10, fraction = 0, message = "版本不能超过10位")
    @Column(name = "VERSION_")
    private Integer version;

    public String getAccidentinfoId(){
        return accidentinfoId;
    }

    public void setAccidentinfoId(String accidentinfoId){
        this.accidentinfoId = accidentinfoId;
    }
    public String getAccidentNo(){
        return accidentNo;
    }

    public void setAccidentNo(String accidentNo){
        this.accidentNo = accidentNo;
    }
    public String getAccidentTpCd(){
        return accidentTpCd;
    }

    public void setAccidentTpCd(String accidentTpCd){
        this.accidentTpCd = accidentTpCd;
    }
    public String getReason(){
        return reason;
    }

    public void setReason(String reason){
        this.reason = reason;
    }
    public Date getHappenDt(){
        return happenDt;
    }

    public void setHappenDt(Date happenDt){
        this.happenDt = happenDt;
    }
    public String getCanCompensationFlg(){
        return canCompensationFlg;
    }

    public void setCanCompensationFlg(String canCompensationFlg){
        this.canCompensationFlg = canCompensationFlg;
    }
    public String getIsFlawy(){
        return isFlawy;
    }

    public void setIsFlawy(String isFlawy){
        this.isFlawy = isFlawy;
    }
    public String getGuarStsCd(){
        return guarStsCd;
    }

    public void setGuarStsCd(String guarStsCd){
        this.guarStsCd = guarStsCd;
    }
    public String getIsLegal(){
        return isLegal;
    }

    public void setIsLegal(String isLegal){
        this.isLegal = isLegal;
    }
    public String getCltNo(){
        return cltNo;
    }

    public void setCltNo(String cltNo){
        this.cltNo = cltNo;
    }
    public String getCltId(){
        return cltId;
    }

    public void setCltId(String cltId){
        this.cltId = cltId;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getCreatedById() {
        return createdById;
    }

    public void setCreatedById(String createdById) {
        this.createdById = createdById;
    }

    public String getModifiedById() {
        return modifiedById;
    }

    public void setModifiedById(String modifiedById) {
        this.modifiedById = modifiedById;
    }

    public String getCreatedByName(){
        return createdByName;
    }

    public void setCreatedByName(String createdByName){
        this.createdByName = createdByName;
    }
    public Date getCreatedTime(){
        return createdTime;
    }

    public void setCreatedTime(Date createdTime){
        this.createdTime = createdTime;
    }
    public String getDelflag(){
        return delflag;
    }

    public void setDelflag(String delflag){
        this.delflag = delflag;
    }
    public Integer getDisplayOrder(){
        return displayOrder;
    }

    public void setDisplayOrder(Integer displayOrder){
        this.displayOrder = displayOrder;
    }
    public String getModifiedByName(){
        return modifiedByName;
    }

    public void setModifiedByName(String modifiedByName){
        this.modifiedByName = modifiedByName;
    }
    public Date getModifiedTime(){
        return modifiedTime;
    }

    public void setModifiedTime(Date modifiedTime){
        this.modifiedTime = modifiedTime;
    }
    public Integer getVersion(){
        return version;
    }

    public void setVersion(Integer version){
        this.version = version;
    }
}

